package com.bw.module_cashier.api

import com.bw.lib_common.api.BaseApiServer
import com.bw.lib_common.entity.BaseResponse
import com.bw.lib_common.entity.CashierBillEntity
import com.bw.lib_common.entity.CashierPayerEntity
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.POST
import retrofit2.http.Path

/**
 * 智慧园区-05-收银台V1.1-20250507
 */
interface CashierApiService :BaseApiServer{
    @GET("/api/bills/payer/{payerId}")
    suspend fun getCashier(@Path("payerId")payerId:Int): BaseResponse<List<CashierPayerEntity>>

    @GET("/api/charge-items/payer/{payerId}")
    suspend fun getCashierDetailBill(@Path("payerId")id:Int): BaseResponse<List<CashierBillEntity>>

    @POST("/api/charge-items")
    suspend fun addCashier(@Body cashierBillEntity: CashierBillEntity): BaseResponse<CashierBillEntity>

}